package cn.edu.scau.cmi.suwenpeng.chapter06;

class Student6_5 {
	int number;
	String name;

	Student6_5() {

	}

	Student6_5(int number, String name) {
		this.number = number;
		this.name = name;
		System.out.println("我的名字是:" + name + "我的学号是:" + number);
	}
}

class UniverStudent extends Student6_5 {
	boolean isMarry;

	UniverStudent(int number, String name, boolean b) {
		super(number, name);
		isMarry = b;
		System.out.println("婚否=" + isMarry);
	}
}

public class Example6_5 {

	public static void main(String[] args) {
		@SuppressWarnings("unused")
		UniverStudent zhang = new UniverStudent(9901, "和小林", false);

	}

}
